<table class="table table-striped table table-striped table-bordered table-condensed">
    <tr>
        <th>#</th>
        <th>Position</th>
        <th>Landing page</th>
        <th>Pageviews</th>
        <th>Bounce rate</th>
    </tr>
    <?php foreach ($top30pages as $page): ?>
        <tr>
            <td><?php echo $page->id ?></td>
            <td>
                <?php if ($page->up_status == 1): ?>
                    <img src="<?php echo Yii::app()->request->baseUrl; ?>/images/up.gif"/>
                <?php elseif ($page->up_status == 0): ?>
                    <img src="<?php echo Yii::app()->request->baseUrl; ?>/images/same.gif"/>
                <?php else: ?>
                    <img src="<?php echo Yii::app()->request->baseUrl; ?>/images/down.gif"/>
                <?php endif; ?>
            </td>
            <td>
                <?php echo $page->landing_page ?>
            </td>
            <td><?php echo $page->page_views ?></td>
            <td><?php echo $page->bounce_rate ?></td>
        </tr>
    <?php endforeach; ?>
</table>